/*
 * 作者		www.TheWk.cn.vc
 * 开发环境	Windows7 64位 MyEclipse8.6 JDK1.6.0_37
 * 开发日期	2013-11-14
 */
package common.model;


/**
 * <hr/>
 * 手机接口适配专用
 * @author www.TheWk.cn.vc
 * @version 1.0 2013-11-14
 */
public class EasyUiMobileAdapterCrudModel<T> extends BaseModel {

	private static final long serialVersionUID = -1058648070426366736L;

	public static final int   Status_Success   = 200;
	public static final int   Status_Error     = 300;

	private int               status;
	private String 			  name;
	private String            message;

	private T                 rows;

	/**
	 * 状态为Error
	 */
	public EasyUiMobileAdapterCrudModel() {
		this.status = Status_Error;
	}

	/**
	 * 传入状态
	 */
	public EasyUiMobileAdapterCrudModel(int status) {
		this.status = status;
	}

	/**
	 * 传入消息,状态为Error
	 */
	public EasyUiMobileAdapterCrudModel(String message) {
		this.status = Status_Error;
		this.message = message;
	}

	/**
	 * 传入状态,消息
	 */
	public EasyUiMobileAdapterCrudModel(int status, String message) {
		this.status = status;
		this.message = message;
	}

	/**
	 * 传入消息,状态
	 */
	public EasyUiMobileAdapterCrudModel(String message, int status) {
		this.status = status;
		this.message = message;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public T getRows() {
		return rows;
	}

	public void setRows(T rows) {
		this.rows = rows;
	}
	

}
